package com.yzh.springboot_rbac.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Post {
    @NotNull(message = "postId can not is null")
    private Integer postId;
    @NotBlank(message = "postCode can not is null")
    private String postCode;
    @NotNull(message = "postSort can not is null")
    private Integer postSort;
    @NotBlank(message = "postName can not is null")
    private String postName;
    private String status;
    private String createBy;
    private Date createTime;
    private String updateBy;
    private Date updateTime;
    private String delFlage;
    private String remark;

    /*一个岗位对应多个用户*/
    private List<User> userList;

}
